package store.gjn998.mp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author guozepeng
 * @since 2021-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LogInfo对象", description="日志打印对象")
public class LogInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "日志表主键")
      @TableId(value = "log_id", type = IdType.AUTO)
    private Long logId;

    @ApiModelProperty(value = "事件名称，一般为业务方法名称")
    private String eventName;

    @ApiModelProperty(value = "结果消息")
    private String msg;

    @ApiModelProperty(value = "接口响应时间")
    private Date costTime;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "其他业务参数")
    private String others;

    @ApiModelProperty(value = "请求数据")
    private String request;

    @ApiModelProperty(value = "响应数据")
    private String response;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建人id")
    private Long createUser;

    @ApiModelProperty(value = "修改人id")
    private Long updateUser;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;


}
